package com.commonEncryptionAlgorithms.hashFunction.hash.md5;

import org.junit.Test;

public class Run {
    @Test
    public void Md5_1() {
        String input = "hello word";
        long start = System.currentTimeMillis();
        for (int i = 0; i < 1000; i++) {
            String md5 = MD5E1.getMd5(input);
        }
        long end = System.currentTimeMillis();
        System.out.println("cost:" + (end - start));
    }

    @Test
    public void Md5_2() {
        String input = "hello word";
        long start = System.currentTimeMillis();
        for (int i = 0; i < 1000; i++) {
            String md5 = MD5E2.getMD5(input);
        }
        long end = System.currentTimeMillis();
        System.out.println("cost:" + (end - start));
    }
}
